<template>
  <div class="conins">
    <van-nav-bar title="我的金币" placeholder fixed left-arrow />
    <div class="conins__content">
      <div class="conins__header">
        <div class="conins__t">我的金币</div>
        <span class="number">4532</span>
        <div class="conins__total">
          <div>共获得<span>2388</span></div>
          <div>已消费<span>2333</span></div>
        </div>

        <div class="check-score">
          <span>查看学分</span>
          <van-icon name="arrow" />
        </div>
      </div>

      <div class="conins__detail">
        <div class="conins__title">
          <div class="title">收支明细</div>
          <div class="more">
            <span>获得更高金币？</span>
            <van-icon size="16px" color="#00C37D" name="warning-o" />
          </div>
        </div>

        <div class="item van-hairline--bottom" v-for="i in 8" :key="i">
          <div class="item__left">
            <div class="item__title">任务奖励 计划通过奖励</div>
            <div class="item__time">2022-02-22 12:22:33</div>
          </div>
          <div class="item__money">+223</div>
        </div>
      </div>
    </div>

    <van-action-bar placeholder>
      <van-action-bar-button
        type="success"
        color="linear-gradient(270deg, #1CA893 0%, #1BCD74 100%)"
        text="去商场兑换"
      />
    </van-action-bar>
  </div>
</template>
<script name="MyConins" setup></script>
<style lang="scss" scoped>
.conins {
  ::v-deep .van-nav-bar {
    background-image: url("@/assets/images/hsnav.png");
    background-size: 100% 46px;
    background-repeat: no-repeat;
  }
  ::v-deep{
    .van-action-bar-height,.van-action-bar-button--first{
        margin-left: 16px;
        margin-right: 16px;
    }
  }
  &__content {
    background-image: url("@/assets/images/hsbg.png");
    background-size: 100% auto;
    background-repeat: no-repeat;
    padding: 10px 16px;
   
  }
  &__header {
    padding: 0 10px;
    position: relative;
    .number {
      font-size: 28px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
      line-height: 40px;
    }
  }
  .check-score {
    position: absolute;
    top: 20px;
    right: -16px;
    display: flex;
    align-items: center;
    width: 104px;
    height: 36px;
    background: #ffffff;
    border-radius: 100px 0px 0px 100px;
    padding-left: 14px;
    box-sizing: border-box;
    span {
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
      line-height: 20px;
      padding-right: 8px;
    }
  }
  &__t {
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #272b2d;
    line-height: 20px;
  }
  &__total {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #272b2d;
    line-height: 20px;
    margin-top: 16px;
    div {
      margin-right: 60px;
    }
    span {
      font-size: 16px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
      line-height: 22px;
      padding-left: 6px;
    }
  }
  &__detail {
    padding: 22px 16px;
    background-color: #fff;
    border-radius: 8px;
    margin-top: 18px;
    padding-bottom: 0;
  }
  &__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .title {
      font-size: 18px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #171a1d;
      line-height: 25px;
    }
    .more {
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #676b6b;
      line-height: 20px;
    }
  }
  .item {
    display: flex;
    padding: 18px 0;
    align-items: center;
    &__left {
      flex: 1;
    }
    &__title {
      font-size: 16px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
      line-height: 22px;
    }
    &__time {
      margin-top: 6px;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #676b6b;
      line-height: 17px;
    }
    &__money {
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #ff3f51;
      line-height: 20px;
    }
  }
}
</style>